package org.idea.spring.bean.beaninstance.factory;

import org.idea.spring.bean.beandefinitionbuilder.User;
import org.springframework.beans.factory.FactoryBean;

/**
 * 直接默认使用spring内置的factorybean进行初始化操作
 *
 * @Author idea
 * @Date created in 8:17 上午 2020/7/9
 */
public class SpringUserFactoryBean implements FactoryBean {

    @Override
    public Object getObject() throws Exception {
        return User.createUser();
    }

    @Override
    public Class<?> getObjectType() {
        return User.class;
    }
}
